/*
 * ContactForm.java
 *
 * Created on October 30, 2008, 1:10 AM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.vacuela.publishmx.web.bean;

import org.vacuela.publishmx.domains.Contact;

/**
 *
 * @author nestor.carrasco
 */
public class ContactForm {
    private boolean newContact;
    private Contact contact;
    private int countNumbers;
    
    /** Creates a new instance of ContactForm */
    public ContactForm() {
        contact = new Contact();
        newContact = true;
    }

    public ContactForm(Contact cont){
        contact = cont;
        newContact = false;
    }
    public boolean isNewContact() {
        return newContact;
    }

    public Contact getContact() {
        return contact;
    }

    public int getCountNumbers() {
        //return(contact.getNumbers() == null)?0:contact.getNumbers().size();
        return countNumbers;
    }

    public void setCountNumbers(int countNumbers) {
        this.countNumbers = countNumbers;
    }
    
    
}
